<?php 
$image = $this->image;
echo '<div class="image largeimage">';
echo '<span class="preview"><a href="' . $image->getLarge(false) . '" target="_blank">';
echo '<img src="' . $image->getThumb(false) . '" />';
echo '</a></span>';
if($this->edit) {
	echo '<div class="clear"></div><div style="font-size:10pt;font-weight:bold;padding:5px 0 3px 0;">';
	echo '<input type="checkbox" name="deleteResource" id="deleteResource" value="1" />';
	echo '<label for="deleteResource" class="for-checkbox">' . $this->language('Delete Image') . '</label>';
	echo '</div>';
}
echo '</div><div class="clear"></div>';
echo '<input type="file" name="' . $this->name . '" id="' . $this->name . '" />';
echo '<code>' . $this->language("Only supports for") . ': <strong>' . strtoupper(implode(',', resource_config_image::getExtensions())) . '</strong></code>';
?>